home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / TransSkel / Convenience / Dialog Item Stuff / SkelGetDlogCtl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-20  |  261 b   |  18 lines  |  [TEXT/KAHL]

  1. /*
  2.  * Return a handle to the control associated with a dialog item.
  3.  */
  4.  
  5. # include    "TransSkel.h"
  6.  
  7.  
  8. pascal ControlHandle
  9. SkelGetDlogCtl (DialogPtr d, short item)
  10. {
  11. short    type;
  12. Handle    h;
  13. Rect    r;
  14.  
  15.     GetDItem (d, item, &type, &h, &r);
  16.     return ((ControlHandle) h);
  17. }
  18.